package JavaSE.CODE.javaIO;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

public class BufferedWriterDemo {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new FileReader("D:\\liric.txt"));
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("D:\\lyric.txt"));

        String str;
        while((str=bufferedReader.readLine())!=null){
            bufferedWriter.write(str);
//            bufferedWriter.newLine();
        }
        bufferedReader.close();
        bufferedWriter.close();
    }
}
